package com.xiaoshuidi.cloud.module.member.pojo.questionnaireinfo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@TableName(value = "member_questionnaire_info", autoResultMap = true)
@KeySequence("member_questionnaire_info_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberQuestionnaireInfo extends TenantBaseDO {
    private static final long serialVersionUID = 7403167470692961917L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "问卷名称")
    private String name;

    @Schema(description = "主图")
    private String image;

    @Schema(description = "问券说明")
    private String description;

    @Schema(description = "奖励积分")
    private Integer bonusPoints;

    @Schema(description = "回收数量")
    private Integer recyclingNum;

    @Schema(description = "生效时间")
    private LocalDateTime effectTime;

    @Schema(description = "失效时间")
    private LocalDateTime expireTime;


    @Schema(description = "是否已发布false未发布true已发布")
    private Boolean isPublished;

    @Schema(description = "发送短信1是0否")
    private Boolean sendMsg;

    @Schema(description = "发送站内信1是0否")
    private Boolean sendSysInfo;

    @Schema(description = "发送类型, 1-所有,2-在租租客")
    private Integer receiver;

    @Schema(description = "门店")
    private String apartment;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建人")
    private String creatorName;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;
}
